import {GetCategory} from '@/api/news'
import { reactive } from "@vue/composition-api";

export function common(){
    const categoryItem = reactive({
        item:[]
    })
    const getCategory = () => {
        GetCategory().then(response => {
            console.log(response);
            categoryItem.item = response.data.data.data
        })
    }
    return {
        getCategory,categoryItem
    }
}